package com.mobinters.cafeman;

import com.mobinters.cafeman.module.MainSlideModule;
import com.mobinters.cafeman.module.MealLoadModule;

import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.Menu;
import android.view.WindowManager;

public class CMActivity extends Activity {

	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		//requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
		setContentView(R.layout.main);
		new MealLoadModule(CMActivity.this);
		new MainSlideModule(CMActivity.this);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}
	
	public static void startActivity(Context parent){
			parent.startActivity(new Intent(parent,CMActivity.class));
	}

}
